package com.ruoyi.residential.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.residential.mapper.TResidentialMapper;
import com.ruoyi.residential.domain.TResidential;
import com.ruoyi.residential.service.ITResidentialService;

/**
 * 小区列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-10
 */
@Service
public class TResidentialServiceImpl implements ITResidentialService 
{
    @Autowired
    private TResidentialMapper tResidentialMapper;

    /**
     * 查询小区列表
     * 
     * @param residentialId 小区列表主键
     * @return 小区列表
     */
    @Override
    public TResidential selectTResidentialByResidentialId(Long residentialId)
    {
        return tResidentialMapper.selectTResidentialByResidentialId(residentialId);
    }

    /**
     * 查询小区列表列表
     * 
     * @param tResidential 小区列表
     * @return 小区列表
     */
    @Override
    public List<TResidential> selectTResidentialList(TResidential tResidential)
    {
        return tResidentialMapper.selectTResidentialList(tResidential);
    }

    /**
     * 新增小区列表
     * 
     * @param tResidential 小区列表
     * @return 结果
     */
    @Override
    public int insertTResidential(TResidential tResidential)
    {
        return tResidentialMapper.insertTResidential(tResidential);
    }

    /**
     * 修改小区列表
     * 
     * @param tResidential 小区列表
     * @return 结果
     */
    @Override
    public int updateTResidential(TResidential tResidential)
    {
        return tResidentialMapper.updateTResidential(tResidential);
    }

    /**
     * 批量删除小区列表
     * 
     * @param residentialIds 需要删除的小区列表主键
     * @return 结果
     */
    @Override
    public int deleteTResidentialByResidentialIds(Long[] residentialIds)
    {
        return tResidentialMapper.deleteTResidentialByResidentialIds(residentialIds);
    }

    /**
     * 删除小区列表信息
     * 
     * @param residentialId 小区列表主键
     * @return 结果
     */
    @Override
    public int deleteTResidentialByResidentialId(Long residentialId)
    {
        return tResidentialMapper.deleteTResidentialByResidentialId(residentialId);
    }
}
